package com.ziyun.pop.modules.goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.renren.common.utils.StringUtil;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.List;


/**
 * 产品表
 *
 * @author xueqz
 * @email
 * @date 2018-08-21 08:46:29
 */
@TableName("goods_product")
public class GoodsProductEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 产品Id
	 */
	@TableId(type=IdType.INPUT)
	private Long productId;
	/**
	 * 原系统工艺价id
	 */
	@TableField(exist = false)
	private String craftPriceId;
	/**
	 *pop平台单价
	 */
//	@TableField(exist = false)
	private BigDecimal singlePricePop;
	/**
	 * 商品Id
	 */
	private Long goodsId;
	/**
	 * 产品编号
	 */
	private String productNo;
	/**
	 * 起订量
	 */
	private BigDecimal minBuyNum;
	/**
	 * 总价价格
	 */
	private BigDecimal totalPrice;
	/**
	 * 总价价格-pop平台临时存储字段
	 */
//	@TableField(exist = false)
	private BigDecimal totalPricePop;
	/**
	 * 扩展价格（大纸平板价）
	 */
	private BigDecimal expandPrice;
	/**
	 * 扩展价格(pop大纸平板价,pop复印纸箱价)
	 */
	private BigDecimal expandPricePop;
	/**
	 * 单价
	 */
	private BigDecimal singlePrice;
	/**
	 * 市场价
	 */
	private BigDecimal marketPrice;
	/**
	 * 平板市场价
	 */
	private BigDecimal lMarketPrice;
	/**
	 * 市场价
	 */
	private BigDecimal cost;
	/**
	 * 平板市场价
	 */
	private BigDecimal lCost;
	/**
	 * 重量
	 */
	private BigDecimal weight;
	/**
	 * 库存
	 */
	private BigDecimal store;
	/**
	 * 单位
	 */
	private String unit;
	/**
	 * 上下架状态
	 */
	private String marketable;
	/**
	 * 规格属性id集合
	 */
	private String optionIds;
	/**
	 * 添加字段,product_info
	 */
	private String productInfo;
	/**
	 *
	 */
	@TableField(exist = false)
	private String optionNames;
	/**
	 * 产品工艺价id集合
	 */
	private String craftOptionIds;
	/**
	 * 是否屏蔽（true：是；false：否）
	 */
	private Boolean disabled;
	/**
	 * 创建人
	 */
	private String createName;
	/**
	 * 创建时间
	 */
	private String createTime;
	/**
	 * 是否被添加
	 */
	@TableField(exist = false)
	private Boolean addOrDel;
	/**
	 * 规格属性集合
	 */
	@TableField(exist = false)
	private List<GoodsOptionEntity> goodsOptionList;
	/**
	 * 工艺属性集合
	 */
	@TableField(exist = false)
	private List<GoodsOptionEntity> goodsCraftOptionList;
	/**
	 * goodsName
	 */
	@TableField(exist = false)
	private String goodsName;
	/**
	 * 是否默认sku
	 */
	private Boolean defaultProduct;
	/**
	 *旧系统数据表示
	 */
	private Boolean dateFlag;

	public Boolean getDateFlag() {
		return dateFlag;
	}

	public void setDateFlag(Boolean dateFlag) {
		this.dateFlag = dateFlag;
	}

	/**
	 * 设置：产品Id
	 */
	public void setProductId(Long productId) {
		this.productId = productId;
	}
	/**
	 * 获取：产品Id
	 */
	public Long getProductId() {
		return productId;
	}
	/**
	 * 设置：商品Id
	 */
	public void setGoodsId(Long goodsId) {
		this.goodsId = goodsId;
	}
	/**
	 * 获取：商品Id
	 */
	public Long getGoodsId() {
		return goodsId;
	}
	/**
	 * 设置：产品编号
	 */
	public void setProductNo(String productNo) {
		this.productNo = productNo;
	}
	/**
	 * 获取：产品编号
	 */
	public String getProductNo() {
		return productNo;
	}
	/**
	 * 设置：起订量
	 */
	public void setMinBuyNum(BigDecimal minBuyNum) {
		this.minBuyNum = minBuyNum;
	}
	/**
	 * 获取：起订量
	 */
	public BigDecimal getMinBuyNum() {
		return minBuyNum;
	}
	/**
	 * 设置：总价价格
	 */
	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}
	/**
	 * 获取：总价价格
	 */
	public BigDecimal getTotalPrice() {
		return totalPrice;
	}
	/**
	 * 设置：单价
	 */
	public void setSinglePrice(BigDecimal singlePrice) {
		this.singlePrice = singlePrice;
	}
	/**
	 * 获取：单价
	 */
	public BigDecimal getSinglePrice() {
		return singlePrice;
	}
	/**
	 * 设置：市场价
	 */
	public void setMarketPrice(BigDecimal marketPrice) {
		this.marketPrice = marketPrice;
	}
	/**
	 * 获取：市场价
	 */
	public BigDecimal getMarketPrice() {
		return marketPrice;
	}
	/**
	 * 设置：平板市场价
	 */
	public BigDecimal getlMarketPrice() {
		return lMarketPrice;
	}
	/**
	 * 获取：平板市场价
	 */
	public void setlMarketPrice(BigDecimal lMarketPrice) {
		this.lMarketPrice = lMarketPrice;
	}
	/**
	 * 设置：重量
	 */
	public void setWeight(BigDecimal weight) {
		this.weight = weight;
	}
	/**
	 * 获取：重量
	 */
	public BigDecimal getWeight() {
		return weight;
	}
	/**
	 * 设置：库存
	 */
	public void setStore(BigDecimal store) {
		this.store = store;
	}
	/**
	 * 获取：库存
	 */
	public BigDecimal getStore() {
		return store;
	}
	/**
	 * 设置：单位
	 */
	public void setUnit(String unit) {
		this.unit = unit;
	}
	/**
	 * 获取：单位
	 */
	public String getUnit() {
		return unit;
	}
	/**
	 * 设置：上下架状态
	 */
	public void setMarketable(String marketable) {
		this.marketable = marketable;
	}
	/**
	 * 获取：上下架状态
	 */
	public String getMarketable() {
		return marketable;
	}
	/**
	 * 设置：规格属性id集合
	 */
	public void setOptionIds(String optionIds) {
		this.optionIds = optionIds;
	}
	/**
	 * 获取：规格属性id集合
	 */
	public String getOptionIds() {
		return optionIds;
	}
	/**
	 * 设置：产品工艺价id集合
	 */
	public void setCraftOptionIds(String craftOptionIds) {
		this.craftOptionIds = craftOptionIds;
	}
	/**
	 * 获取：产品工艺价id集合
	 */
	public String getCraftOptionIds() {
		return craftOptionIds;
	}
	/**
	 * 设置：是否屏蔽（true：是；false：否）
	 */
	public void setDisabled(Boolean disabled) {
		this.disabled = disabled;
	}
	/**
	 * 获取：是否屏蔽（true：是；false：否）
	 */
	public Boolean getDisabled() {
		return disabled;
	}
	/**
	 * 设置：创建人
	 */
	public void setCreateName(String createName) {
		this.createName = createName;
	}
	/**
	 * 获取：创建人
	 */
	public String getCreateName() {
		return createName;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public String getCreateTime() {
		return createTime;
	}

	public List<GoodsOptionEntity> getGoodsOptionList() {
		return goodsOptionList;
	}

	public void setGoodsOptionList(List<GoodsOptionEntity> goodsOptionList) {
		this.goodsOptionList = goodsOptionList;
	}

	public List<GoodsOptionEntity> getGoodsCraftOptionList() {
		return goodsCraftOptionList;
	}

	public void setGoodsCraftOptionList(List<GoodsOptionEntity> goodsCraftOptionList) {
		this.goodsCraftOptionList = goodsCraftOptionList;
	}

	public BigDecimal getExpandPrice() {
		return expandPrice;
	}

	public void setExpandPrice(BigDecimal expandPrice) {
		this.expandPrice = expandPrice;
	}

	public Boolean getDefaultProduct() {
		return defaultProduct;
	}

	public void setDefaultProduct(Boolean defaultProduct) {
		this.defaultProduct = defaultProduct;
	}

	public BigDecimal getCost() {
		return cost;
	}

	public void setCost(BigDecimal cost) {
		this.cost = cost;
	}

	public BigDecimal getlCost() {
		return lCost;
	}

	public void setlCost(BigDecimal lCost) {
		this.lCost = lCost;
	}

	public String getOptionNames() {
		return optionNames;
	}

	public void setOptionNames(String optionNames) {
		this.optionNames = optionNames;
	}

	public Boolean getAddOrDel() {
		if(StringUtil.isNull(addOrDel)){
			return false;
		}else{
			return addOrDel;
		}
	}

	public void setAddOrDel(Boolean addOrDel) {
		this.addOrDel = addOrDel;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public String getProductInfo() {
		return productInfo;
	}

	public void setProductInfo(String productInfo) {
		this.productInfo = productInfo;
	}

	public String getCraftPriceId() {
		return craftPriceId;
	}

	public void setCraftPriceId(String craftPriceId) {
		this.craftPriceId = craftPriceId;
	}

	public BigDecimal getSinglePricePop() {
		return singlePricePop;
	}

	public void setSinglePricePop(BigDecimal singlePricePop) {
		this.singlePricePop = singlePricePop;
	}

	public BigDecimal getTotalPricePop() {
		return totalPricePop;
	}

	public void setTotalPricePop(BigDecimal totalPricePop) {
		this.totalPricePop = totalPricePop;
	}

	public BigDecimal getExpandPricePop() {
		return expandPricePop;
	}

	public void setExpandPricePop(BigDecimal expandPricePop) {
		this.expandPricePop = expandPricePop;
	}
}
